package com.junxonline.plat.exception;

import com.junxonline.common.exception.BizException;

import java.io.Serializable;

/**
 * 前2位数为系统模块编号,后2位为功能模块编号,最后3位为具体业务异常编号 ,共7位必须保持唯一
 * 未知错误：0000000
 * 管理平台 01
 *
 * @author lijx
 * @ClassName: CommonBizException
 * @Description: 系统异常类
 */

public class PlatBizException extends BizException implements Serializable {



    public PlatBizException() {
    }

    public PlatBizException(String code, String msgFormat, Object... args) {
        super(code, msgFormat, args);
    }

    public PlatBizException(String code, String msg) {
        super(code, msg);
    }

    /**
     * 实例化异常
     *
     * @param msgFormat
     * @param args
     * @return
     */
    @Override
    public PlatBizException newInstance(String msgFormat, Object... args) {
        return new PlatBizException(this.code, msgFormat, args);
    }

}
